#ifndef NOTICE_COMMAND_H_
#define NOTICE_COMMAND_H_

#include "command.h"

#ifdef _WIN32
#pragma warning( push )
#pragma warning( disable : 4200 )
#endif

#pragma pack(1)
namespace Cmd
{
        enum //CMD_NOTICE
        {
                SCMD_NOTICE_NULL                = 0x0000,
                SCMD_NOTICE_NORMAL              = 0x0001,       // 系统通知
                SCMD_NOTICE_URL_NORMAL          = 0x0002,       // 针对个人的系统通知
        };
        struct stNoticeNormal:
                t_NullCmd
        {
                stNoticeNormal():
                        t_NullCmd(CMD_NOTICE, SCMD_NOTICE_NORMAL)
                {
                        type_ = 0;
                        notice_len_ = 0;
                }
                BYTE type_; //eNoticeType
                WORD notice_len_;
                char notice_[0];
                DWORD getSize() {
                        return sizeof(*this)+notice_len_*sizeof(notice_[0]);
                }
        };
};//namespace Cmd
#pragma pack()

#ifdef _WIN32
#pragma warning( pop )
#endif

#endif //NOTICE_COMMAND_H_
